<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>animation effect</title>
    <style type="text/css">
        div.inside {
            width: 1000px;
            height: 500px;
            background-color: aqua;
            margin: 5% auto;
        }


        .box {
            width: 100px;
            height: 100px;
            position: relative;
            top: 400px;


            animation-name: ll;
            animation: ll 2.5s infinite linear;

            animation: ll 4s ease-in-out .5s infinite alternate both;

        }

        @keyframes ll {
            0% {
                background-color: rgb(15, 128, 0);
                transform: translate3D(0, 0, 0);
                border-radius: 0%;
            }

            50% {
                background-color: rgb(11, 0, 128);
                transform: translate3D(900px, -200px, 0);
                border-radius: 100%;
            }

            100% {
                transform: translate3D(0, -400px, 0);
                background-color: orange;
                border-radius: 0%;
            }
        }
    </style>
</head>

<body>
    <div class="inside">
        <div class="box"></div>
    </div>



</body>

</html>